#!/usr/bin/env bash


curl 'http://172.18.1.41:5281/portal?a=login&u=ymliu&t=1&basip=172.18.31.123' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
  -H 'Cookie: rmbUser=true; username=ymliu; password=ocab7e9a' \
  -H 'DNT: 1' \
  -H 'Origin: http://172.18.1.41:5281' \
  -H 'Referer: http://172.18.1.41:5281/login.html?redirect=http://www.sgcc.com.cn/?_=0.8087568335501005&inac-ip=172.18.31.123&rsid=V1.62.7' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57' \
  -H 'X-Requested-With: XMLHttpRequest' \
  --data 'ocab7e9a' \
  --compressed \
  --insecure
  echo ""

curl 'http://172.18.1.41:5281/portal?a=update&basip=172.18.31.123' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
  -H 'Connection: keep-alive' \
  -H 'Cookie: rmbUser=true; username=ymliu; password=ocab7e9a' \
  -H 'DNT: 1' \
  -H 'Referer: http://172.18.1.41:5281/login.html?redirect=http://www.sgcc.com.cn/?_=0.8087568335501005&inac-ip=172.18.31.123&rsid=V1.62.7' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57' \
  -H 'X-Requested-With: XMLHttpRequest' \
  --compressed \
  --insecure


#pptpsetup --create vpn-jys --server 9m56e813.qicp.vip --username test --password cqep.134679 --encrypt --start
#route add -host 192.168.0.150 gw 192.168.80.1
echo ""
